<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>应用上传</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link href="<%=path%>/ylzui/style/page.css" rel="stylesheet"
			type="text/css" />
		<link id="cssfile"
			href="<%=path%>/ylzui/themes/orange/style/orange_skin.css"
			rel="stylesheet" type="text/css" />		
		<script type="text/javascript"
			src="${pageContext.request.contextPath}/jslib/jquery-1.9.1.min.js"></script>
		<script type="text/javascript"
			src="${pageContext.request.contextPath}/jslib/layer/layer.min.js"></script>			
		<script type="text/javascript" charset="utf-8">
			var _contextPath = '<%=path%>';		
		</script>				
		<script type="text/javascript"
			src="${pageContext.request.contextPath}/jslib/Validform/Validform_v5.3.2_min.js"></script>
		<link rel="stylesheet"
			href="${pageContext.request.contextPath}/jslib/Validform/Validform_v5.3.2_css.css"
			type="text/css"></link>		
		<script type="text/javascript"
			src="${pageContext.request.contextPath}/js/developer-appsoft.js"></script>		
			
		<style type="text/css">
		  .red {color: #f00;}
		  .pr5 {padding-left: 5px;}
		  ol {list-style-type: none; list-style-image: none;}
		</style>		
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>

	<body>
		<div class="r_main">
			<!--r_main begin-->
			<div class="breadcrumb">
				<!--breadcrumb begin-->
				<span class="firstLi">当前位置：</span>
				<span>软件管理</span>				
				<span>应用管理</span>
				<span class="urhere">应用上传</span>
				<!--breadcrumb end-->
			</div>
			<h3 class="font_color_f56a0b mt10 plr10">
				应用上传(带<font class="red pl10">*</font>为必填信息)
			</h3>
			<hr class="hr_solid_2" />
			<div class="instruction">	
				<input type="hidden" id="contextPath" value="${pageContext.request.contextPath}">
								
				<div class="plr10">
					<form id="appsoftForm" method="post" enctype="multipart/form-data"
						action="${pageContext.request.contextPath}/system/saveAppSoft.shtml">
					<input type="hidden" name="appsoft.id">
					<input type="hidden" name="appsoft.userid">
					<input type="hidden" name="appsoft.softversion">
					<input type="hidden" name="appsoft.softsize">
					<input type="hidden" name="appsoft.createdate">
					<input type="hidden" name="appsoft.updatedate">
					<input type="hidden" name="appsoft.addeddate">
					<input type="hidden" name="appsoft.auditname">
					<input type="hidden" name="appsoft.auditdate">
					<input type="hidden" name="appsoft.auditidea">
					<input type="hidden" name="appsoft.audittype">
					<input type="hidden" name="appsoft.productguid">
					<input type="hidden" name="appsoft.icoguid">
					<input type="hidden" name="appsoft.coverguid">
					<input type="hidden" name="appsoft.screenguid">
					<input type="hidden" name="appsoft.qualguid"> 
					
					<h3 class="font_color_f56a0b mt10 plr10">
						安装包
					</h3>
					<hr class="hr_solid_2" />
					<table border="0" cellspacing="0" cellpadding="0" class="t_form01">
						<tr>
							<td class="propertyName">
								<label>
									<font class="red pl10">*</font>安装包：
								</label>
							</td>
							<td>																
								<input type="file" class="pl" name="productfile"/>
							</td>
						</tr>
						<tr>
							<td class="propertyName" valign="top">
								<label>
									<font class="red pl10">*</font>付费形式：
								</label>
							</td>
							<td>
								<input type="radio" checked="true" id="paytype000" name="appsoft.paytype" value="000">
								<label for="paytype000">无任何付费内容</label><br>
								<input type="radio" id="paytype001" name="appsoft.paytype" value="001">
								<label for="paytype001">付费购买道具、表情等虚拟物品</label><br>
								<input type="radio" id="paytype002" name="appsoft.paytype" value="002">
								<label for="paytype002">付费购买完整版应用</label>
							</td>
						</tr>
						<tr>
							<td class="propertyName" valign="top">
								<label>
									<font class="red pl10">*</font>升级日志：
								</label>
							</td>
							<td>
								<textarea cols="" rows="3" class="input_text_sty_border w_300" 
									name="appsoft.updatescript"></textarea>(500字内)
							</td>
						</tr>
					</table>	
					
					<h3 class="font_color_f56a0b mt10 plr10">
						基本信息
					</h3>
					<hr class="hr_solid_2" />
					<table border="0" cellspacing="0" cellpadding="0" class="t_form01">
						<tr>
							<td class="propertyName">
								<label>
									<font class="red pl10">*</font>应用名称：
								</label>
							</td>
							<td>																
								<input type="text" class="input_text_sty_26 w_200" 										
										name="appsoft.softname"
										value="${appsoft.softname}"/> 	
							</td>
						</tr>
						<tr>
							<td class="propertyName">
								<label>
									<font class="red pl10">*</font>开发者：
								</label>
							</td>
							<td>																
								<input type="text" class="input_text_sty_26 w_200" 										
										name="appsoft.devname"
										value=""/> 	
							</td>
						</tr>
						<tr>
							<td class="propertyName">
								<label>
									<font class="red pl10">*</font>应用分类：
								</label>
							</td>
							<td>																
								<select id="softtype" class="input_text_sty_26 w_200" name="appsoft.softtype" >
									<option value="">
										请选择分类
									</option>			
									<s:iterator id="id" value="%{lstCategory}">
										<option value="<s:property value="#id.categoryid"/>">
											<s:property value="#id.categoryname"/>
										</option>			
									</s:iterator>						
								</select>
							</td>
						</tr>
						<tr>
							<td class="propertyName">
								<label>
									<font class="red pl10">*</font>应用简介：
								</label>
							</td>
							<td>																
								<input type="text" class="input_text_sty_26 w_200" 										
										name="appsoft.appsummary"
										value=""/>(10字内) 	
							</td>
						</tr>
						<tr>
							<td class="propertyName" valign="top">
								<label>
									<font class="red pl10">*</font>应用描述：
								</label>
							</td>
							<td>
								<textarea cols="" rows="3" class="input_text_sty_border w_300" 
									name="appsoft.appscript"></textarea>(500字内)
							</td>
						</tr>
					</table>	
					
					<h3 class="font_color_f56a0b mt10 plr10">
						图片素材
					</h3>
					<hr class="hr_solid_2" />
					<table border="0" cellspacing="0" cellpadding="0" class="t_form01">
						<tr>
							<td class="propertyName">
								<label>
									<font class="red pl10">*</font>图标：
								</label>
							</td>
							<td>																
								<input type="file" class="pl" name="iconfile"/>
								<br><label>请上传512*512大小的高分辩率图标</label>
							</td>
						</tr>
						<tr>
							<td class="propertyName">
								<label>
									<font class="red pl10">*</font>应用封面：
								</label>
							</td>
							<td>																
								<input type="file" class="pl" name="coverfile"/>
								<br><label>合作推广应用请上传(480*240)</label>
							</td>
						</tr>
						<tr>
							<td class="propertyName">
								<label>
									<font class="red pl10">*</font>应用截图：
								</label>
							</td>
							<td>																
								<input type="file" class="pl" name="screenfile"/>
								<br><label>请至少上传4张截图</label>
							</td>
						</tr>
					</table>	
					
					<h3 class="font_color_f56a0b mt10 plr10">
						应用资质
					</h3>
					<hr class="hr_solid_2" />
					<table border="0" cellspacing="0" cellpadding="0" class="t_form01">
						<tr>
							<td class="propertyName">
								<label>
									<font class="red pl10">*</font>资质：
								</label>
							</td>
							<td>																
								<input type="file" class="pl" name="qualfile"/>
								<br><label>公司请上传软件著作权，或开发者权利声明，或代理资质证明，个人请上传开发者权利声明，均为扫描件</label>
							</td>
						</tr>
					</table>	
					<table border="0" cellspacing="0" cellpadding="0" class="t_form01">
						<tr>
							<td class="propertyName">
								<label>
									
								</label>
							</td>
							<td>																
								<input value="保存" class="button mr5 mt10" type="button" 
									id="saveAppSoft"   />
							</td>
						</tr>
					</table>	
					</form>
				</div>
			</div>
		</div>
	</body>
</html>
